#pragma once
#include "AppInterface.h"
#include "ataskinterface.h"
#include "plugininterface.h"
#include <qobject.h>
#include <qlineedit.h>
#include <QDoubleSpinBox>


class PluginTrans:public QObject, public ARSSPluginInterface
{
	Q_OBJECT
public:
	PluginTrans(ARSSAppInterface* appi) :_appi(appi), _widget(0),
		_lineEditB1(0), _lineEditB3(0),
		_lineEditA(0), _lineEditB(0),
		_lineEditC(0),
		_lineEditOutput(0),_lineEditScale(0){}

	virtual void initGui() ;
	virtual void unload()  ;

public slots:
	void onMenu();
	void onRun();
	void onOpenB1();
	void onOpenB3();
	void onOpenOutput();
	void onSaveTaskDone();

private:
	ARSSAppInterface* _appi;
	QLineEdit* _lineEditB1;
	QLineEdit* _lineEditB3;
	QLineEdit* _lineEditA;
	QLineEdit* _lineEditB;
	QLineEdit* _lineEditC;
	QLineEdit* _lineEditOutput;
	QLineEdit* _lineEditScale;

	QWidget* _widget;
	int _serialId = 0;
};

